package com.xiaofeng.pochi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaofeng.pochi.common.Page;
import com.xiaofeng.pochi.pojo.ShopBrand;
import com.xiaofeng.pochi.pojo.SysHelp;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created with IntelliJ IDEA
 *
 * @Author: chc
 * @Date: 2022/08/09/23:25
 * @Description:
 */
@Component
public interface ShopBrandMapper extends BaseMapper<ShopBrand> {
    void save(ShopBrand shopBrand);

    void update(ShopBrand shopBrand);

    void delete(Long id);

    ShopBrand get(Long id);

    Integer countByPage(Page<ShopBrand> page);

    List<ShopBrand> getByPage(Page<ShopBrand> page);

    List<ShopBrand> getByCategoryId(Long categoryId);

    List<ShopBrand> getByIds(List<Long> brandIds);

    List<ShopBrand> getName(String name);
}
